/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Test;

import Bean.KategoriBarang;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Anggit
 */
public class InsertDataKategoriBarang {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws SQLException {
        KategoriBarang []kat = {new KategoriBarang("111","Kaos"), new KategoriBarang("222", "Celana"),
        new KategoriBarang("333", "Jaket")};
        
        for (int i = 0; i < 3; i++) {
            try {
                kat[i].getKoneksi().tambahKategoriPrepared(kat[i]);
            } catch (Exception ex) {
                Logger.getLogger(InsertDataKategoriBarang.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        System.out.println("sukses broo!!");
    }
}
